package com.vegetable.modules.entity.stock.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 * 库存预警记录查询对象
 * </p>
 *
 * @author wangruijie
 * @since 2024-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="StockAlertRecordQueryPO", description="库存预警记录查询对象")
public class StockAlertRecordQueryPO extends BaseEntity {

    @ApiModelProperty(value = "商品名称模糊查询")
    private String commodityNameLike;

    @ApiModelProperty(value = "商品编码")
    private String commonCode;

    @ApiModelProperty(value = "预警级别：1低级2中级3高级")
    private Integer alertLevel;

    @ApiModelProperty(value = "预警状态：0未处理1已处理2已忽略")
    private Integer alertStatus;

    @ApiModelProperty(value = "预警开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "预警结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "台账标识 0寿光 1河北")
    private Integer regionId;

    @ApiModelProperty(value = "页码")
    private Long page = 1L;

    @ApiModelProperty(value = "每页大小")
    private Long size = 15L;
}